package cc.shacocloud.luanniao.web

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import java.util.*

/**
 *
 * @author 思追(shaco)
 */
@SpringBootApplication
class LuanniaoWebApplication

fun main(args: Array<String>) {
    // 设置默认时区
    val timeZoneId = System.getProperty("TIME_ZONE_ID", System.getenv("TIME_ZONE_ID")) ?: "Asia/Shanghai"
    TimeZone.setDefault(TimeZone.getTimeZone(timeZoneId))

    runApplication<LuanniaoWebApplication>(*args)
}